#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

int main()
{
	int num = 0;
	int c=0;
	for (num = 1; num <= 100; num++)
	{
		if (num % 9 == 0 || num % 10 == 9)
		{
			c++;
		}
	}
	printf("%d", c);
	return 0;
}
